package cn.taokuaidi.wangwang.client.mvc;

import cn.taokuaidi.wangwang.client.smart.AppConfig;
import cn.taokuaidi.wangwang.client.util.Screen;

import com.extjs.gxt.ui.client.widget.LayoutContainer;
import com.google.gwt.user.client.ui.Frame;

/**
 * @author 嘉陵江里捉鱼 email:tang7259@163.com
 *@version 1.0
 *@time Nov 23, 2008 11:10:18 AM
 */
public class StatView extends LayoutContainer {

    public StatView() {
        Frame f = new Frame();
        f.setUrl("/chart/stat");
        AppConfig appConfig = Screen.getAppConfig();
        fly(f.getElement()).setStyleAttribute("frameBorder", "0");
        fly(f.getElement()).setStyleAttribute("overflow", "hidden");
        fly(f.getElement()).setStyleAttribute("width", appConfig.statWidth);
        fly(f.getElement()).setStyleAttribute("height", appConfig.statHeight);
        add(f);
    }

}
